package computer;

import java.util.ArrayList;

import hardware.MemoryInterface;

public class Box {

public String username;
public String password;
public MemoryInterface Motherboard;
public ArrayList<String> logs = new ArrayList<String>();
/*
 * This would have to be the enterence point via a web service in a real game such as 
 * were the server is setup etc. 
 *  
 *  */

private void createLog(String command)
{
	logs.add(command);
}

public void access(String username, String password, String command)
{
	if(this.username == username && this.password == password)
		{
		 executeCommand(command);
		}
}
//TODO create a module to parse commands for the system to execute
private void executeCommand(String command)
{
	createLog(command);
}

}
